<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>显示转换</title>
    <style>
        a {
            width: 200px;
            height: 50px;
            background-color: skyblue;
            text-decoration: none;
            /* 将行内元素转换为块元素 */
            display: block;
        }

        div {
            width: 200px;
            height: 50px;
            text-decoration: none;
            /* 将块元素转换为行内元素 */
            display: inline;
        }

        span {
            width: 200px;
            height: 30px;
            background-color: pink;
            /* 将行内转换为行内块元素 */
            display: inline-block;
        }
    </style>

</head>

<body>
    <a href="http://baidu.com">百度</a>
    <div>i按此欸刹那刹那</div>
    <div>i按此欸刹那刹那</div>

    <span>行内转换为行内块</span>
    <span>行内转换为行内块</span>

</body>

</html>